﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{


    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsRoomType _iCsRoomType = null;

        public static ICsRoomType CreateCsRoomType()
        {
            if (_iCsRoomType == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsRoomType_Sys";
                _iCsRoomType = (ICsRoomType)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsRoomType;
        }
    }






    public interface ICsRoomType
    {
        String GetRoomTypeID(String Identifier);

        bool UpdateRoomTypeTable(DataTable dt);

        DataTable GetRoomTypeTable(String organID);

        String GetCsRoomTypeIdentifier(String Roomid);


        DataTable GetRoomTypeData(String InID);
    }
}
